/* eslint-disable*/
import { SaaSPageParams } from '/@/api/model/baseModel';

export type ApiParams = {
  application?: string;
  microservice?: string;
  api?: string;
  method?: string;
};

export type ApiPageParams = { model: ApiParams } & SaaSPageParams;

export type ApiViewParams = {
  api_id: string;
};

export interface SaaSApiListItem {
  name: string;
  apiPath: string;
  method: string;
  application: string;
  microservice: string;
  edittime: string;
  createtime: string;
}

export type ParamItem = {
  param: string;
  paramType: string;
  necessary: string;
  defaultValue: string;
  paramDescription: string;
};

export type CreateApiItem = {
  name: string;
  application: string;
  microservice: string;
  description: string;
  apiPath: string;
  method: string;
  returnType: string;
  getParamDtoList: ParamItem[];
  requestBody: string;
};

export interface ApiViewItem {
  name: string;
  application: string;
  microservice: string;
  description: string;
  apiPath: string;
  method: string;
  returnType: string;
  getParamDtoList: ParamItem[];
  requestBody: string;
}
